package com.ccc.db.controller;

import com.ccc.db.util.DBExportUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;

/**
 * 数据库导出
 *
 * @author superC
 * @version 1.0.0
 * @date 2024-08-07
 */

@RestController
@RequestMapping("/db")
public class DBController {

    @Resource
    private DBExportUtil dbExportUtil;

    @GetMapping("/export")
    public void export(HttpServletResponse response) {
        dbExportUtil.genDbWord();
    }

}
